import request from "@/utils/request";

// 获取用户列表
export async function reqUsers(): Promise<any>  {
  return request('/api/manage/user/list', { })
}

// 添加用户
export async function reqAddUser({ payload }): Promise<any>  {
  return request('/api/manage/user/add', {
    method: 'POST',
    ...payload
  })
}

// 修改用户
export async function reqUpdateUser({ payload }): Promise<any>  {
  return request('/api/manage/user/update', {
    method: 'POST',
    ...payload
  })
}

// 删除用户
export async function reqDeleteUser({ payload }): Promise<any>  {
  return request('/api/manage/user/delete', {
    method: 'POST',
    ...payload
  })
}
